
/*
 * route.js
 * 全局路由配置
 */
  const layout = resolve => require(['../components/Layout'], resolve),
  home = resolve => require(['../components/Home'], resolve),
  login = resolve => require(['../components/use/Login'], resolve),
  favorite = resolve => require(['../components/use/Favorite'], resolve),
  detail = resolve => require(['../components/use/Detail'], resolve),
  nouse = null//这行别动,用来占位,在上面新加,新加行要加尾逗号
let routes = [
  {
    path: '/', component: layout, children: [
      { path: '/user/login', component: login,name:'login'},
      { path: '/home', component: home,name:'home'},
      { path: '/user/favorite', component: favorite,name:'favorite'},
      { path: '/user/detail', component: detail,name:'detail'},
    ]
  },
];
export default routes